package com.wavehi.process_of_load;

/**
 * @Author WaveHi
 * @Date 1/10/2021 下午 6:12
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 * @Description Demonstrate the process of initialization in class being loading
 */
public class ClinitDemo01 {
    private static int num = 1;

    static {
        num = 2;
        number = 20;//可以被向前赋值
//        System.out.println(number);//非法向前引用
    }

    private static int number = 10;
}
